<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--视口的设置，让网页能等比例的缩放到对应设备中-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--告诉ie浏览器用最新内核去渲染网页-->
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<!-- Bootstrap -->
<link
	href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
	rel="stylesheet">
<title>会员充值</title>
<style>
.items:hover {
	margin: -45px 10px 10px 10px;
}

.navbar .user-icon:hover .dropdown-menu {
	display: block;
}

.navbar .mail-icon:hover .dropdown-menu {
	display: block;
}

.dropdown-menu:hover {
	display: block;
}

* {
	box-sizing: border-box;
}

body {
	background-color: #996ef0 !important;
	font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
}

.navbar {
	background: #996ef0 !important;
	opacity: 1 !important;
	margin: 0px;
	height: 80px;
	line-height: 80px;
}

.navbar-brand {
	padding-left: 50px;
}

.navbar-pages {
	float: left;
}

.page a {
	margin-right: 52px;
	font-weight: 500;
	color: #ffffff;
	font-size: 18px;
	text-decoration: none;
}

.navbar-right {
	margin-right: 50px;
	line-height: 80px;
}

.modal {
	position: fixed;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	z-index: 1000;
	background: rgba(0, 0, 0, .3);
	opacity: 1;
	-webkit-transition: opacity .1s ease-out;
	-moz-transition: opacity .1s ease-out;
	transition: opacity .1s ease-out;
	display: none;
}

.modal-content {
	top: 150px;
}

.icon-badge {
	position: absolute;
	right: 178px;
	top: 18px;
	font-size: 14px;
	font-weight: 400;
	display: inline-block;
	padding: 0 5px;
	height: 18px;
	background: #ff7351;
	border-radius: 4px;
	color: #fff;
	line-height: 17px;
}

.dropdown-badge {
	display: inline-block;
	padding: 0px 5px;
	background: #ff7351;
	border-radius: 4px;
	color: #fff;
	height: 18px;
}

.icon {
	float: right;
	line-height: 80px;
	width: 80px;
}

.dropdown-menu {
	top: 70px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 2px 8px 0 hsla(0, 0%, 79%, .5);
	font-size: 14px;
	font-weight: 400;
	color: #333;
	line-height: 42px;
}

.dropdown-menu li {
	padding: 5px 0px;
}

.items {
	border: 1px solid #EEEEEE;
	height: 290px;
	padding: 16px;
	background-color: #FACC27;
	position: relative;
	margin: -30px 10px 10px 10px;
	color: #af7a00;
	text-align: center;
	border-radius: 6px;
}

.inner {
	margin: 5px;
	background-color: #F8F8F8;
}

.items .btn {
	display: inline-block;
	width: 183px;
	height: 36px;
	line-height: 36px;
	background: #f5f5f5;
	font-size: 14px;
	cursor: pointer;
	border-radius: 20px;
	margin-bottom: 20px;
	border: 1px solid #af7a00;
	padding: 0px;
}

.type {
	padding-top: 27px;
	font-size: 20px;
	line-height: 21px;
}

.day_price {
	font-size: 38px;
	line-height: 53px;
	color: #af7a00;
	text-align: center;
}

.total {
	margin-top: 7px;
	font-size: 14px;
}

.price {
	font-size: 32px;
}

.money{
	font-size: 24px;
	color: #EEB735;
}
.line {
	display: inline-block;
	width: 183px;
	height: 2px;
	margin-top: 4px;
	background: #dfca99;
}

.cards {
	margin: 0px 200px 50px 200px;
	position: relative;
	background-color: white;
	border-radius: 6px 6px 0 0;
	padding: 0px 20px 30px 30px;
}

.body-left {
	padding: 20px;
	float: left;
}

.row {
	margin-top: 50px;
	position: relative;
}

.content {
	margin: 30px 50px;
}

.title {
	position: relative;
	text-align: center;
	line-height: 25px;
	color: #e2ad43;
	font-weight: 700;
	font-size: 100%;
}

.border {
	position: absolute;
	border-top: 1px solid #eebe5f;
	top: 12px;
	width: 40%;
}

.border1 {
	left: 22px;
}

.border2 {
	right: 22px;
}

.priority {
	margin-bottom: 30px;
}

.priority_details {
	font-weight: 700;
	color: gray;
	text-align: center;
}

.priority_details img {
	margin-bottom: 10px;
}

.btn-default {
	padding: 0px;
}

.payment_btn {
	width: 270px;
	height: 68px;
	margin: 74px auto;
	text-align: center;
	font-size: 24px;
	color: #333;
	cursor: pointer;
	overflow: hidden;
	border-radius: 34px;
	line-height: 68px;
	background: -webkit-linear-gradient(225deg, #ffc21e, #fff62b);
	background: -moz-linear-gradient(225deg, #ffc21e, #fff62b);
	background: linear-gradient(-135deg, #ffc21e, #fff62b);
}

.notice {
	padding: 15px 22px;
	margin: 41px 18px 0;
	border-radius: 4px;
	border: 1px solid #ebebeb;
	color: #747478;
	font-size: 14px;
	line-height: 20px;
}

.notice_title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}
</style>
</head>
<body>

	<!--页面导航栏-->
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-items">
				<div class="col-lg-2 col-md-2">
					<a class="navbar-brand" href="#"> <img alt="程续缘LOGO"
						src="../images/logo.png">
					</a>
				</div>
				<div class="navbar-pages">
					<span class="page"><a href="#">首页</a></span> <span class="page"><a
						onclick="jump()">搜索</a></span> <span class="page"><a href="#">掏心会员</a></span>
				</div>
				<div class="navbar-right">
					<div class="icon user-icon">
						<div class="dropdown">
							<button class="btn btn-default dropdown-toggle" type="button"
								id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true"
								aria-expanded="true"
								style="background: transparent; border: none">
								<img src="../images/user.png">
							</button>
							<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
								<li><a href="#">个人主页</a></li>
								<li><a href="#">编辑资料</a></li>
								<li><a href="#">修改密码</a></li>
								<li role="separator" class="divider" style="padding: 1px"></li>
								<li><a href="#">退出</a></li>
							</ul>
						</div>
					</div>

					<div class="icon mail-icon">
						<div class="dropdown">
							<button class="btn btn-default dropdown-toggle" type="button"
								id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
								aria-expanded="true"
								style="background: transparent; border: none">
								<img src="../images/mail.png">
							</button>
							<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
								<li><a href="#">消息 <span class="badge dropdown-badge">99</span></a></li>
								<li><a href="#">系统消息</a></li>
								<li role="separator" class="divider" style="padding: 0px"></li>
								<li><a href="#">谁看过我</a></li>
							</ul>
						</div>
						<span class="badge icon-badge">99</span>
					</div>
				</div>
			</div>
		</div>
	</nav>
	<!--开通会员图片-->
	<div class="row" style="text-align: center; padding-top: 50px">
		<img src="../images/unlock.png">
	</div>
	<!-- 年度会员购买弹框 -->
	<!-- Modal -->
	<div class="modal fade" id="dialog_year" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<a href=""><span aria-hidden="true">&times;</span></a>
					</button>
					<h4 class="modal-title">开通掏心会员</h4>
				</div>
				<div class="modal-body">
					<div class="body-left">
						<p>
							你好，<span class="memberId"><strong>会员123456789</strong></span>
						</p>
						<p>
							开通服务：<strong>掏心会员12个月</strong>
						</p>
						<p>
							应支付：<strong class="money">388元</strong>
						</p>
						
					</div>
					<div class="body-right">
							<div class="QR_code">
								<img src="../images/my_alipay.jpg">
							</div>
					</div>
				</div>
				<div class="modal-footer">
					<form method="post" action="/alipay/page/gotoPayPage" target="_blank" style="float:left">
							<button class="btn btn-warning" type="submit">前往支付</button>
					</form>
					
					<button type="button" class="btn btn-primary" onclick="updateVIP('dialog_year')">完成支付</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 季度会员购买弹框 -->
	<div class="modal" id="dialog_quarter" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<a href=""><span aria-hidden="true">&times;</span></a>
					</button>
					<h4 class="modal-title">开通掏心会员</h4>
				</div>
				<div class="modal-body">
					<div class="body-left">
						<p>
							你好，<span class="memberId"><strong>会员123456789</strong></span>
						</p>
						<p>
							开通服务：<strong>掏心会员3个月</strong>
						</p>
						<p>
							应支付：<strong class="money">348元</strong>
						</p>
					</div>
					<div class="body-right">
							<div class="QR_code">
								<img src="../images/my_alipay.jpg">
							</div>
					</div>
				</div>
				<div class="modal-footer">
					<form method="post" action="/alipay/page/gotoPayPage" target="_blank" style="float:left">
							<button class="btn btn-warning" type="submit">前往支付</button>
					</form>
					
					<button type="button" class="btn btn-primary" onclick="updateVIP('dialog_quarter')">完成支付</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 月度会员购买弹框 -->
	<div class="modal" id="dialog_month" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<a href=""><span aria-hidden="true">&times;</span></a>
					</button>
					<h4 class="modal-title">开通掏心会员</h4>
				</div>
				<div class="modal-body">
					<div class="body-left">
						<p>
							你好，<span class="memberId"><strong>会员123456789</strong></span>
						</p>
						<p>
							开通服务：<strong>掏心会员1个月</strong>
						</p>
						<p>
							应支付：<strong class="money">248元</strong>
						</p>
					</div>
					<div class="body-right">
							<div class="QR_code">
								<img src="../images/my_alipay.jpg">
							</div>
					</div>
				</div>
				<div class="modal-footer">
					<form method="post" action="/alipay/page/gotoPayPage" target="_blank" style="float:left">
							<button class="btn btn-warning" type="submit">前往支付</button>
					</form>
					
					<button type="button" class="btn btn-primary" onclick="updateVIP('dialog_month')">完成支付</button>
				</div>
			</div>
		</div>
	</div>
	<!--页面主体-->
	<div class="cards">
		<!--VIP购买选项卡-->
		<div class="vip_purchase">
			<div class="row">
				<div class="col-lg-4 col-md-4">
					<div class="items text-center">
						<div class="inner">
							<p class="type">掏心会员12个月</p>
							<p class="day_price">1.06元/天</p>
							<div class="line"></div>
							<p class="total">
								超值会员价 <span class="price">388</span>元
							</p>
							<div>
								<div class="btn" id="year" onclick="show('dialog_year')">立即开通</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-lg-4 col-md-4">
					<div class="items text-center">
						<div class="inner">
							<p class="type">掏心会员3个月</p>
							<p class="day_price">3.8元/天</p>
							<div class="line"></div>
							<p class="total">
								优惠价格 <span class="price">348</span>元
							</p>
							<div class="btn" id="quarter" onclick="show('dialog_quarter')">立即开通</div>
						</div>
					</div>
				</div>
				<div class="col-lg-4 col-md-4">
					<div class="items text-center">
						<div class="inner">
							<p class="type">掏心会员1个月</p>
							<p class="day_price">8.2元/天</p>
							<div class="line"></div>
							<p class="total">
								优惠价格 <span class="price">248</span>元
							</p>
							<div class="btn" id="month" onclick="show('dialog_month')">立即开通</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="content">
			<!--会员权益-->
			<div class="priority">
				<div class="title">
					<div class="border border1"></div>
					会员权益
					<div class="border border2"></div>
				</div>
				<div class="row">
					<div class="priority_details">
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_mail.gif">
							<p>解锁你的收件箱</p>
						</div>
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_message.gif">
							<p>解锁消息发送</p>
						</div>
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_pic.gif">
							<p>无限制上传照片</p>
						</div>
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_livestream.gif">
							<p>免费畅享直播</p>
						</div>
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_select.png">
							<p>更多精准筛选条件</p>
						</div>
						<div class="col-lg-2 col-md-2">
							<img src="../images/priority_crown.gif">
							<p>尊贵会员勋章</p>
						</div>

					</div>
				</div>
			</div>
			<!--会员购买-->
			<div class="payment" align="center">
				<div class="payment_btn">
					<div class="annual_vip">立即开通</div>
				</div>
			</div>

			<!--服务说明-->
			<div class="notice">
				<p class="notice_title">服务说明</p>
				<p>1、购买的服务仅限本账号使用，不能转移到其他账号；</p>
				<p>2、在使用本服务期间，若从事不恰当或不合法的行为，程续缘网站保留进行调查并立即终止服务的权利；</p>
				<p>3、对于本服务和以上条款，在法律允许范围内程续缘网站拥有解释权。</p>
				<p class="notice_title">安全征婚提示</p>
				<p>在以下情况下请不要轻易透露你的联系方式（如电话、手机号码、邮箱、即时通信、通信地址等）</p>
				<p>1、在未充分了解对方前，请不要轻易透露你的联系方式。</p>
				<p>2、当对方无相片或资料不完整时，请不要轻易透露你的联系方式。</p>
				<p>3、相亲过程中，如遇对方提及借款、投资或索要等行为，请务必提高警惕，谨防受骗，并及时举报。</p>
			</div>
		</div>
	</div>

	<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
	<script
		src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
	<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
	<script
		src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
	<script>
		$(document).ready(function() {
			$(document).off('click.bs.dropdown.data-api');
		
		});

		function show(id) {
			if ($("#" + id).css("display") == 'none') {
				$("#" + id).css("display", "block");
			}
		}
		function close(id) {
			$("#" + id).css("display", "none");
		}
		function updateVIP(id){
			$("#" + id).css("display","none");
			console.log(id);
			/*此处要实现更新VIP状态的业务  */
		}
		function jump(){
			window.open("user");
		}
		
	</script>

</body>
</html>